function infer() {
    try {
        const addon = require('./Debug/U2Net');
        const obj = new addon.U2Net("sample.jpg");


        console.log(obj.getengine());
        console.log(obj.infer_on_image());
    } catch (error) {
        window.console.log(error);
    }
    return "Success"
}

function  hello(){
    var addon = require('./Debug/hello');

    console.log(addon.hello()); // 'world'
}

export{infer,hello}


    // expected output: ReferenceError: nonExistentFunction is not defined
    // Note - error messages will vary depending on browser

// console.log( obj.getengine() );
// console.log( obj.infer_on_image()
// );